package com.antis.olsl.data.adapter;

import com.antis.olsl.data.R;
import com.antis.olsl.data.response.GetCategoryInventoryListResp;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class CategoryQueryAdapter extends BaseQuickAdapter<GetCategoryInventoryListResp.ContentBean.CategoryListBean, BaseViewHolder> implements LoadMoreModule {
    public CategoryQueryAdapter(int layoutResId, @Nullable List<GetCategoryInventoryListResp.ContentBean.CategoryListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, GetCategoryInventoryListResp.ContentBean.CategoryListBean item) {
        baseViewHolder.setText(R.id.text_product_code, item.categoryName);
        baseViewHolder.setText(R.id.text_product_name, item.categoryName);
        baseViewHolder.setText(R.id.text_store_num, item.categoryName + "");
        baseViewHolder.setText(R.id.text_profit_grade, item.categoryName + "");
    }
}
